package com.liy.cloud.auth.client.feign;

import com.liy.framework.common.extvo.ResultVO;
import org.springframework.stereotype.Component;

@Component
public class AuthorizationFeignClientFallback implements AuthorizationFeignClient {

    public ResultVO authorization(String token) {
        return new ResultVO(false, "认证服务器异常，请稍后再试.", "500");
    }

    public ResultVO hasPermission(String token, String code) {
        return new ResultVO(false, "认证服务器异常，请稍后再试.", "500");
    }

    public ResultVO getUserPublicKey(String clientId, String secret) {
        return new ResultVO(false, "认证服务器异常，请稍后再试.", "500");
    }

    public ResultVO permissionSync(Object obj) {
        return new ResultVO(false, "认证服务器异常，请稍后再试.", "500");
    }
}
